package com.shycloud.mido.music.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shycloud.mido.music.domain.MisMusicLibrary;
import com.shycloud.mido.music.dto.MusicLibraryDto;
import com.shycloud.mido.music.dto.MusicLibrarySearchDto;
import com.shycloud.mido.music.vo.CourseWareMusicIPageVO;
import com.shycloud.mido.music.vo.MusicLibraryVO;
import org.apache.ibatis.annotations.Param;

/**
 * 曲库模块 Mapper
 *
 * @author nianhua.jiang
 * @date 2020/4/30 10:50
 */
public interface MisMusicLibraryMapper extends BaseMapper<MisMusicLibrary> {

	/**
	 * 分页查询曲库信息
	 *
	 * @param page
	 * @param cateId
	 * @return com.baomidou.mybatisplus.core.metadata.IPage
	 * @author nianhua.jiang
	 * @date 2020/4/30 10:29
	 */
	IPage<MusicLibraryVO> getMusicLibrary(@Param("page") Page page, @Param("cateId") Integer cateId);

	IPage<MusicLibraryDto> page(@Param("search") MusicLibrarySearchDto search);

	IPage<CourseWareMusicIPageVO> getMusicLibraryForCourseware(@Param("page") Page page, @Param("cateId") Integer cateId);
}